<template>
	<view class="dialog-video">
		<video :src="videoUrl" controls autoplay class="video-box"></video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				videoUrl: ''
			}
		},
		onLoad(url) {
			this.videoUrl = decodeURIComponent(url.url)
		}
	}
</script>

<style scoped lang="scss">
	.dialog-video {
		position: fixed;
		z-index: 999;
		width: 100vw;
		height: 100vh;
		background: rgba(#000, 0.6);
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		justify-content: center;
		align-items: center;

		.video-box {
			position: absolute;
			width: 100vw;
			height: 100vh;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
		}
	}
</style>